<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算属性姓名案例-插值语法</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="root">
        姓:<input type="text" name="firstName" id="" v-model="firstName">
        <br>
        名:<input type="text" name="lastName" id="" v-model="lastName">
        <br>
        全名:{{firstName}} - {{lastName}}
    </div>
    
</body>
<script type="text/javascript">
    Vue.config.productionTip = false //以阻止 vue 在启动时生成生产提示。
    //创建Vue
    const vm = new Vue({
        el:'#root', 
        data:{
            firstName:'黎',
            lastName:'伟华'
        }
    })

</script>
</html>